package com.athuiju.fenxiaoback.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class IndexSpuVo {

    @ApiModelProperty(value = "商品id")
    private String spuId;

    @ApiModelProperty(value = "商品标题")
    private String spuTitle;

    @ApiModelProperty(value = "当前商品的sku id")
    private String defaultSelectskuId;


    public void setSpuTitle(String spuTitle) {
        if ("1".equals(this.getSpuId())){
            this.setPrice("2099");
            this.setDisCountPrict("1999");
            this.setDefaultSelectskuId("5025992");
        }
        if ("2".equals(this.getSpuId())){
            this.setPrice("1699");
            this.setDisCountPrict("1599");
            this.setDefaultSelectskuId("5025996");
        }
        this.spuTitle = spuTitle;
    }

    @ApiModelProperty(value = "折扣价")
    private String disCountPrict="29.99";

    @ApiModelProperty(value = "原价")
    private String price="39.9";

    @ApiModelProperty(value = "已付款人数")
    private Integer doneCont=1025;

    @ApiModelProperty(value = "店铺名")
    private String storeName="无印良品旗舰店";

    @ApiModelProperty(value = "发货城市")
    private String city="杭州";


    @ApiModelProperty(value = "发货城市")
    private String imgurl="http://huijujx.365hy.com/fenxiaoimages/goodimages/good@2x.png";




}
